/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DataModel;

import DataModel.Enums.ActivityStatus;
import DataModel.Enums.ProjectType;
import java.util.Date;

/**
 *
 * @author Rainiero
 */
public class Activity extends ActivitySummary {

    // <editor-fold defaultstate="collapsed" desc="Attributes">
    private int _parentId;
    private String _description;
    private Date _realStart;
    private Date _realEnd;
    private double _initialBudget;
    private double _extraSpent;
    private int _evaluation;
    private Enums.ActivityStatus _status;
    private Enums.ProjectType _projectType;
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Constructor">
    public Activity(int id, String name, String parentName, Date estimatedStart, Date estimatedEnd, double estimatedBudget, double completed, int _parentId, String _description, Date _realStart, Date _realEnd, double _initialBudget, double _extraSpent, int _evaluation, ActivityStatus _status) {
        super(id, name, parentName, estimatedStart, estimatedEnd, estimatedBudget, completed);
        this._parentId = _parentId;
        this._description = _description;
        this._realStart = _realStart;
        this._realEnd = _realEnd;
        this._initialBudget = _initialBudget;
        this._extraSpent = _extraSpent;
        this._evaluation = _evaluation;
        this._status = _status;
    }
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Properties">
    public Activity ProjectType(Enums.ProjectType type)
    {
        _projectType = type;
        return this;
    }

    public String getDescription() {
        return _description;
    }

    public int getEvaluation() {
        return _evaluation;
    }

    public double getExtraSpent() {
        return _extraSpent;
    }

    public double getInitialBudget() {
        return _initialBudget;
    }

    public int getParentId() {
        return _parentId;
    }

    public Date getRealEnd() {
        return _realEnd;
    }

    public Date getRealStart() {
        return _realStart;
    }

    public ActivityStatus getStatus() {
        return _status;
    }

    public ProjectType getProjectType() {
        return _projectType;
    }

    // </editor-fold>

}
